<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/vue.js"></script>
</head>

<body>

  <div id="app">

    <img width="25%" height="25%" :src="imgUrl" alt="">

    <br />

    <button @click="btn1">图片1</button>
    <button @click="btn2">图片2</button>
  </div>

  <script>
    new Vue({
      el: "#app",
      data: {
        imgUrl: "./img/one.webp"
      },

      methods: {
        btn1 () {
          this.imgUrl = "./img/one.webp"
        },

        btn2 () {
          this.imgUrl = "./img/two.webp"
        }

      }
    })
  </script>

</body>

</html>